<template>
  <a-form-model v-bind="$attrs" ref="formRef" class="small">
    <a-row :gutter="16">
      <slot></slot>
    </a-row>
  </a-form-model>
</template>
<script>
export default {
  name: 'CpsForm',
  data() {
    return {}
  },
  methods: {
    validate() {
      return this.$refs.formRef.validate()
    },
    validateFields() {
      return this.$refs.formRef.validateFields(arguments)
    },
    resetFields() {
      return this.$refs.formRef.resetFields(arguments)
    },
    clearValidate() {
      return this.$refs.formRef.clearValidate(arguments)
    },
    scrollToField() {
      return this.$refs.formRef.scrollToField(arguments)
    }
  }
}
</script>
